/*--------------------------------------------------------------------------------------------------
Yatak Operation System Project Copyright 2012-2013
Author : Ilya Churaev
Started : 20 Apr 2012		Updated : 1 May 2012
File Name : timer.h			Purpose : System timer
--------------------------------------------------------------------------------------------------*/
#ifndef _TIMER_H
#define _TIMER_H

#ifdef __cplusplus
extern "C" {
#endif

#include <types.h>

#define sleep(x) timer_wait(x);

void timer_wait(int ticks);
void init_timer(uint32 frequency);
inline void ShowTime (bool);

#ifdef __cplusplus
}
#endif

#endif
